#!/bin/sh

#  installChisel.sh
#  HexoDeploy
# https://blog.csdn.net/zbuter/article/details/79520721
#  Created by admin on 2018/10/21.
#  Copyright © 2018年 boyer. All rights reserved.
# 在系统用户登陆项，选中该文件即可实现启动项自启动，要设置文件的打开方式为：iTerm
screen_name="ngrok" # 创建了一个名为 my_screen 的窗
screen -dmS $screen_name

cmd="ngrok tcp 22";
screen -x -S $screen_name -p 0 -X stuff "$cmd"
screen -x -S $screen_name -p 0 -X stuff '\n'
